﻿// *****************************************************************************
// **                   Ladenius MediaCenter TVSeries                         **
// ** ----------------------------------------------------------------------- **
// ** (c) 2008 by Jurjen Ladenius                                             **
// *****************************************************************************

#region Using directives
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ladenius.Series.Dao;
#endregion

namespace Ladenius.Series.Business {
    /// <summary>
    /// Business logic for series
    /// </summary>
    public static class SeriesHome {

        /// <summary>
        /// Gets all series.
        /// </summary>
        public static List<Entities.Series> GetAll() {
            return SeriesDao.GetAll();
        }

        /// <summary>
        /// Gets the series by ID.
        /// </summary>
        /// <param name="seriesID">The series ID.</param>
        /// <returns></returns>
        public static Entities.Series GetByID(int seriesID) {
            return SeriesDao.GetByID(seriesID);
        }

        /// <summary>
        /// Saves the specified series.
        /// </summary>
        /// <param name="series">The series.</param>
        /// <returns></returns>
        public static Entities.Series Save(Entities.Series series) {
            return SeriesDao.Save(series);
        }

    }
}
